package com.tiancheng.trade.payment.channel.umsshop.response;

import lombok.Data;

import java.io.Serializable;

/**
 * Created by ZHANGWEI on 2016/12/2.
 */
@Data
public abstract class UmpShopApiResponse implements Serializable{
    /**
     * 应答码
     * 0000-成功
     */
    private String respCode;
    /**
     * 应答码描述
     *
     */
    private String respDesc;
    /**
     * 商户号
     */
    private String vaMchntNo;
    /**
     * 终端号
     */
    private String vaTermNo;
    /**
     * 商户订单号
     */
    private String mchntOrderId;

    public boolean isOK(){
        return this.getRespCode().equals("0000") || this.getRespCode().equals("000000") || this.getRespCode().equals("SUCCESS");
    }
}
